package com.ruoyi.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.exam.domain.ExamQuestionOption;
import com.ruoyi.exam.vo.ExamQuestionOptionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 题目选项Mapper接口
 *
 * @author Tellsea
 * @date 2025-05-30
 */
public interface ExamQuestionOptionMapper extends BaseMapper<ExamQuestionOption> {

    Page<ExamQuestionOptionVo> queryList(Page<?> page, @Param("entity") ExamQuestionOptionVo entity);

    List<ExamQuestionOptionVo> queryList(@Param("entity") ExamQuestionOptionVo entity);

    ExamQuestionOptionVo queryById(@Param("id") Long optionId);

    int insert(ExamQuestionOptionVo entity);

}
